<template>
  <div class="onSearch">
    <div class="left">
      <el-form :inline="true"
               :model="formInline"
               class="demo-form-inline"
               size="mini">
        <el-form-item label="提单号">
          <el-input v-model="formInline.billno"
                    placeholder="请输入提单号"
                    clearable
                    style="width:150px"></el-input>
        </el-form-item>
        <el-form-item label="箱号">
          <el-input v-model="formInline.cntrno"
                    placeholder="请输入箱号"
                    clearable
                    style="width:150px"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary"
                     style="background-color:#043AA7"
                     @click.native="handleClick(1)">查询</el-button>
          <el-button type="info"
                     plain
                     @click.native="handleClick(2)">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="right">
      <el-button type="primary"
                 size="mini"
                 plain
                 style="background-color:#fff;color:#0E6EF0"
                 @click.native="handleClick(3)">下发</el-button>
      <el-button type="primary"
                 plain
                 size="mini"
                 style="background-color:#fff;color:#0E6EF0"
                 @click.native="handleClick(4)">新增</el-button>
      <el-button type="primary"
                 plain
                 size="mini"
                 style="background-color:#fff;color:#FF592D"
                 @click.native="handleClick(5)">批量删除</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'onSearch',
  components: {},
  data() {
    return {
      formInline: {},
    }
  },

  methods: {
    handleClick(v){
      this.$emit('handleClick',v)
    }
  },

  computed: {},

  mounted() {},
}
</script>
<style lang='scss' scoped>
.onSearch{
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  :deep .el-form-item{
    margin-bottom: 0;
  }
}
</style>